import request from '@/utils/http'

/** 获取商品列表数据 */
export const getGoodsListAPI = () => {
  return request({ url: "/goods/search" });
};

/** 获取商品详情数据 */
export const getGoodsDetailAPI = (id) => {
  // console.log(456,id);
  return request({
    url: `/goods/detail?goods_id=${id}`

  });
};